//
// Created by yaozi on 19-10-14.
//

#ifndef DATASTRUCTURE_C_SQUEUECESTACK_H
#define DATASTRUCTURE_C_SQUEUECESTACK_H

typedef int ElemType;
#define STACK_SIZE 10

class SqueueceStack {

private:
    ElemType data[STACK_SIZE];
    int top;

public:
    //初始化栈，即构造一个空的栈
    void initStack();

//清空栈
    void clearStack();

//判断栈是否为空
    bool stackEmpty();

//判断栈是否为空
    bool stackFull();

//栈的长度
    int getStackLength();

//获取栈顶元素
    ElemType getTop();

//入栈
    void push(ElemType data);

//出栈
    ElemType pop();

//显示顺序栈
    void showStack();

//进制转换
    void conversionRadix(int data, int radix);

};


#endif //DATASTRUCTURE_C_SQUEUECESTACK_H
